import http from '@/utils/http'

// 添加服务器
export const addServerInfo = (params) => {
  const url = '/system-management/server-info/addServerInfo'
  return http.post(url, params)
}

// 删除服务器
export const deleteServerInfo = (params) => {
  const url = '/system-management/server-info/deleteServerInfo'
  return http.post(url, params)
}

// 分页查询服务器列表
export const selectServerInfoPage = (params) => {
  const url = '/system-management/server-info/selectServerInfoPage'
  return http.post(url, params)
}

// 修改服务器
export const updateServerInfo = (params) => {
  const url = '/system-management/server-info/updateServerInfo'
  return http.post(url, params)
}

// 配置网关
export const configureGateway = (params) => {
  const url = '/system-management/gateway-config/configureGateway'
  return http.post(url, params)
}

// 分页查询设备列表
export const selectGatewayPage = (params) => {
  const url = '/system-management/gateway-config/selectGatewayPage'
  return http.post(url, params)
}

// 查询服务器下拉列表
export const selectServerInfo = (params) => {
  const url = '/system-management/gateway-config/selectServerInfo'
  return http.post(url, params)
}
